package com.ctbu.api;

import com.ctbu.entity.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-service")
public interface UserInfoService {

    @GetMapping("/users/remote/{id}")
    public Users byId(@PathVariable int id);
}
